Skip to content

Conversation

@ymartin59
Copy link

@ymartin59 ymartin59 commented Oct 23, 2025

When running container from a docker compose using a service account (for instance UID=1000 and GID=1000), execution fails with

Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/opt/sonarqube/docker/entrypoint.sh": stat /opt/sonarqube/docker/entrypoint.sh: permission denied: unknown

Exerpt of docker compose:

  sonarqube:
    image: docker.io/library/sonarqube:
    user: "1000:0"
    hostname: sonarqube
    container_name: sonarqube
    read_only: true
    depends_on:
      db:
        condition: service_healthy
      traefik:
        condition: service_started
    environment:
      SONARQUBE_UID: 1000
      SONARQUBE_GID: 1000

Not tested but I am convinced this same issue prevents execution "as is" in Kubernetes context.

Thank you in advance for your help,
Yves

@carminevassallo carminevassallo self-requested a review October 27, 2025 09:53
@carminevassallo carminevassallo self-assigned this Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants